package com.hr.salary.service.impl;

import java.util.List;

import com.hr.salary.dao.impl.SalaryDaoImpl;
import com.hr.salary.domain.Salary;
import com.hr.salary.domain.SalaryRS;
import com.hr.salary.service.SalaryService;
import com.hr.user.domain.User;
import com.hr.utils.PageBean;

public class SalaryServiceImpl implements SalaryService {
	private SalaryDaoImpl salaryDaoImpl = new SalaryDaoImpl();
	
	@Override
	public PageBean<Salary> queryAll_Page(int PageCurrent, int PageSize) {
		// TODO Auto-generated method stub
		return salaryDaoImpl.queryAll_Page(PageCurrent, PageSize);
	}
	
	@Override
	public String findByUserID(String user_id) {
		// TODO Auto-generated method stub
		return salaryDaoImpl.findByUserID(user_id);
	}
	
	@Override
	public void addSalaryRP(Object[] params) {
		// TODO Auto-generated method stub
		salaryDaoImpl.addSalaryRP(params);
	}
	
	@Override
	public PageBean<SalaryRS> queryAll_Page_SalaryRS(int pageCurrent, int pageSize, String salary_id) {
		// TODO Auto-generated method stub
		return salaryDaoImpl.queryAll_Page_SalaryRS(pageCurrent,pageSize,salary_id);
	}
	
	@Override
	public void checkPass(String pro_id) {
		// TODO Auto-generated method stub
		salaryDaoImpl.checkPass(pro_id);
	}
	
	@Override
	public void checkPassUpdateSalaryReal(String salary_id, String user_id, String pro_money,String month,String year) {
		// TODO Auto-generated method stub
		salaryDaoImpl.checkPassUpdateSalaryReal(salary_id,user_id,pro_money,month,year);
	}
	
	@Override
	public void checkRefuse(String pro_id) {
		// TODO Auto-generated method stub
		salaryDaoImpl.checkRefuse(pro_id);
	}
	
	@Override
	public void checkRefuseUpdateSalaryReal(String salary_id, String user_id,
			String pro_money, String month, String year) {
		// TODO Auto-generated method stub
		salaryDaoImpl.checkRefuseUpdateSalaryReal(salary_id,user_id,pro_money,month,year);
	}
	
	@Override
	public Salary findBySalaryId(String salary_id) {
		// TODO Auto-generated method stub
		return salaryDaoImpl.findBySalaryId(salary_id);
	}
	
	@Override
	public void updateSalary(Object[] params) {
		// TODO Auto-generated method stub
		salaryDaoImpl.updateSalary(params);
	}
	
	@Override
	public PageBean<SalaryRS> queryAll_Page_SalaryRS(int pageCurrent,
			int pageSize, User user) {
		// TODO Auto-generated method stub
		return salaryDaoImpl.queryAll_Page_SalaryRS(pageCurrent, pageSize, user);
	}
	
	@Override
	public List<Salary> findSalaryByUserID(String user_id) {
		// TODO Auto-generated method stub
		return salaryDaoImpl.findSalaryByUserID(user_id);
	}
	
	@Override
	public void addSalary(Salary salary) {
		// TODO Auto-generated method stub
		salaryDaoImpl.addSalary(salary);
	}
	
	@Override
	public void deleteApplyByPerson(String pro_id, String salary_id,
			String user_id, String month, String year) {
		// TODO Auto-generated method stub
		salaryDaoImpl.deleteApplyByPerson(pro_id,salary_id,user_id,month,year);
	}
	
}
